﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Combination {
	
	public static int Chaos = 0; //乌龙
	public static int Sub = 1; //对子
	public static int DoubleSub = 2; //两对
	public static int Three = 3; //三条
	public static int Straight = 4; //顺子
	public static int SameColor = 5; //同花
	public static int Gourd = 6; //葫芦
	public static int Branch = 7; //铁支
	public static int StraightColor = 8; //同花顺
	public static int ThreeStraightAndSameColor = 9; //三同花顺
	public static int ThreeSameColor = 10; //三同花
	public static int ThreeStraight = 11;//三顺子
	public static int SixAndHalf = 12;//六对半

	private List<int> list = new List<int> ();
	public int Type = 0;

	public List<int> getValue(){
		return list;
	}

	public void setValue(List<int> value){
		list = value;
	}

	public string getName(){
		
		string value = "";
		switch(Type){
			case 0:
				value = "乌龙";
				break;
			case 1:
				value = "对子";
				break;
			case 2:
				value = "两对";
				break;
			case 3:
				value = "三条";
				break;
			case 4:
				value = "顺子";
				break;
			case 5:
				value = "同花";
				break;
			case 6:
				value = "葫芦";
				break;
			case 7:
				value = "炸弹";
				break;
			case 8:
				value = "同花顺";
				break;
		}

		return value;
	}
}
